package ooday04;

public class Chick extends Animal implements Swim {
   Chick(String name, int age, String color){
       super(name,age,color);
    };
    void layEggs(){
        System.out.println(name+"下蛋");
    }
    void eat(){
        System.out.println(name+"要吃鱼");
    }
    void sayHi(){
        System.out.println(color+"色的"+name+age+"岁了"+"他会吃鱼");
    }
    public void swim(){
        System.out.println(color+"色的"+age+"岁的小狗"+name+"正在潜水。..");
    }
}

